﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
	CodeBehind="FeedbackList.aspx.cs" Inherits="SBACN.WebSite.Admin.Feedback.FeedbackList" %>

<%@ Import Namespace="SBACN.WebSite.Common" %>
<%@ Register Src="../../UC/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<script type="text/javascript">
		function DeleteCom(id) {
			if (confirm("确认要删除吗？")) {
				document.getElementById("<%= hid_ID.ClientID%>").value = id;
				document.getElementById("<%= btn_Delete.ClientID%>").click();
			}
		}

		function RefreshNewsList() {
			if (document.getElementById("<%= btn_NewsRefresh.ClientID%>")) {
				document.getElementById("<%= btn_NewsRefresh.ClientID%>").click();
			}
		}
         
	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<table cellpadding="0" cellspacing="0" border="0" width="95%">
		<tr>
			<td width="10%" class="form-body-noborder">
				处理状态:
			</td>
			<td width="90%" class="form-body-noborder">
				<asp:RadioButtonList ID="radl_Status" runat="server" RepeatDirection="Horizontal"
					AutoPostBack="true" OnSelectedIndexChanged="radl_Status_SelectedIndexChanged">
				</asp:RadioButtonList>
			</td>
		</tr>
	</table>
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table-stroke2">
		<tr>
			<%--<td width="5%" class="form-title2">
				序号
			</td>--%>
			<td width="10%" class="form-title2">
				会员
			</td>
			<td width="60%" class="form-title2">
				内容
			</td>
			<td width="10%" class="form-title2">
				处理状态
			</td>
			<td width="10%" class="form-title2">
				操作
			</td>
		</tr>
		<asp:Repeater ID="rpt_Comp" runat="server">
			<ItemTemplate>
				<tr>
					<%--<td class="form-body">
						<%# Eval("Sequence")%>
					</td>--%>
					<td class="form-body">
						<%# Eval("IdentityName")%>
					</td>
					<td class="form-body">
						<%# Eval("Content").ToString().CutTo(50,48)%>
					</td>
					<td class="form-body">
						<%# SBACN.WebSite.Cache.FeedbackCache.StatusDictionary[Convert.ToInt32(Eval("Status"))]%>
					</td>
					<td class="form-body">
						<a target="_blank" href="ComplainDetail.aspx?st=00050008&t=feedback&id=<%# Eval("ID")%>">编辑</a>
						<a href="javascript:;" onclick="return DeleteCom('<%# Eval("ID")%>');">删除</a>
					</td>
				</tr>
			</ItemTemplate>
			<AlternatingItemTemplate>
				<tr>
					<%--<td class="form-label">
						<%# Eval("Sequence")%>
					</td>--%>
					<td class="form-label">
						<%# Eval("IdentityName")%>
					</td>
					<td class="form-label">
						<%# Eval("Content").ToString().CutTo(50, 48)%>
					</td>
					<td class="form-label">
						<%# SBACN.WebSite.Cache.FeedbackCache.StatusDictionary[Convert.ToInt32(Eval("Status"))]%>
					</td>
					<td class="form-label">
						<a target="_blank" href="ComplainDetail.aspx?st=00050008&t=feedback&id=<%# Eval("ID")%>">编辑</a>
						<a href="javascript:;" onclick="return DeleteCom('<%# Eval("ID")%>');">删除</a>
					</td>
				</tr>
			</AlternatingItemTemplate>
		</asp:Repeater>
		<tr>
			<td colspan="5" class="form-body">
				<uc1:Pager ID="Pager1" runat="server" OnSelectedPageIndexChanged="BindSelectedPageIndexChanged"
					PageSize="15" />
			</td>
		</tr>
	</table>
	<div style="display: none;">
		<asp:HiddenField ID="hid_ID" Value="" runat="server" />
		<asp:Button Text="删除" ID="btn_Delete" runat="server" OnClick="btn_Delete_Click" />
		<asp:Button Text="刷新" ID="btn_NewsRefresh" runat="server" OnClick="btn_NewsRefresh_Click" />
	</div>
</asp:Content>
